SDK/J Authentication Package ver1.0
RICOH Confidential

jp.co.ricoh.dsdk.scard.framework.card
Class Card

java.lang.Object
  extended byjp.co.ricoh.dsdk.scard.framework.card.Card

public class Card
extends java.lang.Object

This is a Card class.


Nested Class Summary
 class Card.Info
           This is the class that encapsulates card information.
 class Card.IO
           This is the class that encapsulates input and output operation of a card.
 
Method Summary
 boolean equals(java.lang.Object arg0)
           
protected  void finalize()
           
 java.lang.Object getCardService(java.lang.Class cls)
           Obtains a card service.
 Card.Info getInfo()
           Get card information.
 Card.IO getIO()
           Obtains the object to communicate with a card.
 int hashCode()
           
 void lock()
           Obtains access right for the target card, and restricts accesses from other processes and threads.
 void unlock()
           Releases the target card by destroying the access right obtained by the lock method.
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInfo

public Card.Info getInfo()
Get card information.

Returns:
the Card.Info object.

getIO

public Card.IO getIO()
Obtains the object to communicate with a card.

Returns:
the Card.IO object.

getCardService

public java.lang.Object getCardService(java.lang.Class cls)
                                throws CardServiceNotFoundException,
                                       CardAccessException
Obtains a card service.

Parameters:
cls - a CardService class..
Returns:
the CardService object.
Throws:
CardServiceNotFoundException - when an appropriate card service was not found.
CardAccessException - when the obtainment of a card service has failed due to the Framework’s failure.

lock

public void lock()
          throws CardAccessException
Obtains access right for the target card, and restricts accesses from other processes and threads. If the access right has already been owned by another process or thread, then, this method will not return control until it obtains the access right. Be sure to release the target card by calling the unlock method.

Throws:
CardAccessException - when an error has occurred in communicating with the card.

unlock

public void unlock()
            throws CardAccessException
Releases the target card by destroying the access right obtained by the lock method.

Throws:
CardAccessException - when an error has occurred in communicating with the card.

equals

public boolean equals(java.lang.Object arg0)

hashCode

public int hashCode()

finalize

protected void finalize()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable

SDK/J Authentication Package ver1.0
RICOH Confidential